<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html lang="zh-CN">
<head>
<title>打印页</title>
<meta charset="utf-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="static/lib/jquery/1.9.1/jquery-1.9.1.min.js"
	type="text/javascript"></script>
<link href="static/lib/bootstrap/3.0.2/css/bootstrap.min.css"
	type="text/css" rel="stylesheet" />
<link href="static/lib/bootstrap/3.0.2/css/bootstrap-theme.css"
	type="text/css" rel="stylesheet" />
<script src="static/lib/bootstrap/3.0.2/js/bootstrap.min.js"
	type="text/javascript"></script>
<link href="static/css/layout.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div style="background: #FFF;width:60%">
			<!--startprint--><div>
			 <h3 class="center">订单明细</h3>
				<table class="table o-l-table table-bordered" id="table1">
					<tbody>
						<tr>
							<td class="text-left" style="width: 15%">订单号:</td>
							<td style="width: 35%">${statementOrder.orderNo}</td>

							<td class="text-left" style="width: 15%">订单类型:</td>
							<td style="width: 35%"><ossp:value dictType="orderType"
									key="${statementOrder.orderType}"></ossp:value></td>
						</tr>
						<tr>
							<td class="text-left" style="width: 15%">订单状态:</td>
							<td style="width: 35%"><ossp:value dictType="ORDER_STATUS"
									key="${statementOrder.orderStatus}"></ossp:value></td>

							<td class="text-left" style="width: 15%">供应商联系人:</td>
							<td style="width: 35%">${statementOrder.supplierContact}</td>
						</tr>
						<tr>
							<td class="text-left" style="width: 15%">供应商编码:</td>
							<td style="width: 35%">${statementOrder.supplierNo}</td>

							<td class="text-left" style="width: 15%">供应商名称:</td>
							<td style="width: 35%">${statementOrder.supplierName}</td>
						</tr>
						<tr>
							<td class="text-left" style="width: 15%">订货日期:</td>
							<td style="width: 35%"><fmt:formatDate
									value="${statementOrder.orderDate}" pattern="yyyy-MM-dd" /></td>

							<td class="text-left" style="width: 15%">交货日期:</td>
							<td style="width: 35%"><fmt:formatDate
									value="${statementOrder.deliveryDate}" pattern="yyyy-MM-dd" /></td>
						</tr>
						<tr>
							<td class="text-left" style="width: 15%">金额:</td>
							<td style="width: 35%"><fmt:formatNumber
									value="${statementOrder.amount}" pattern="##.##"
									minFractionDigits="2"></fmt:formatNumber></td>

							<td class="text-left" style="width: 15%">电话:</td>
							<td style="width: 35%">${statementOrder.tel}</td>
						</tr>
						<tr>
							<td class="text-left" style="width: 15%">订货门店:</td>
							<td style="width: 35%">${statementOrder.orderShopName}</td>

							<td class="text-left" style="width: 15%">送货门店:</td>
							<td style="width: 35%">${statementOrder.receiptShopName}</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div>
				<table
					class="table table-striped table-hover o-l-table table-bordered"
					id="table1">
					<thead>
						<tr>
							<th>商品编码</th>
							<th>商品条码</th>
							<th>商品名称</th>
							<th>规格/型号</th>
							<th>包装率</th>
							<th>含税进价</th>
							<th>订购数量</th>
							<th>进价金额</th>
							<th>税率</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list}" var="statementOrderDetail"
							varStatus="i">
							<tr>
								<td>${statementOrderDetail.mantr}</td>
								<td>${statementOrderDetail.barCode}</td>
								<td>${statementOrderDetail.goodsName}</td>
								<c:if test="${i.index<(listSize-1)}">
									<td>${statementOrderDetail.specification}${statementOrderDetail.modelNumber}</td>
								</c:if>
								<c:if test="${i.index>=(listSize-1)}">
									<td></td>
								</c:if>
								<td>${statementOrderDetail.packageRt}</td>
								<td><fmt:formatNumber
										value="${statementOrderDetail.puPrice}" pattern="##.##"
										minFractionDigits="2"></fmt:formatNumber></td>
								<td>${statementOrderDetail.quantity}</td>
								<td><fmt:formatNumber
										value="${statementOrderDetail.amount}" pattern="##.##"
										minFractionDigits="2"></fmt:formatNumber></td>
								<td><fmt:formatNumber
										value="${statementOrderDetail.taxRate}" pattern="##"
										minFractionDigits="0"></fmt:formatNumber></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div><!--endprint-->
			<div align="center">
				<button class="btn btn-default btn_5" onClick="window.print();">
					打印</button>
				<button class="btn btn-default btn_5" onClick="window.close();">
					关闭</button>
			</div>
	</div>
</body>
</html>